//
//  FileManager+Extensions.swift
//  RssFly
//
//  Created by shen on 2023/10/16.
//

import Foundation

extension FileManager {
    public var appSupportDirectory: URL? {
        do {
            return try self
                .url(for: .applicationSupportDirectory, in: .userDomainMask, appropriateFor: nil, create: true)
                .appendingPathComponent("Rss")
                .standardizedFileURL
        } catch let error as NSError {
            logger.error("Could not find app support directory: \(error)")
            return nil
        }
    }
}
